package com.caigou.service;

import com.caigou.bean.cms.entity.ArticleAdjunct;
import com.caigou.pojo.ArticleAdjunctData;
import com.caigou.pojo.ArticleDataAdjunctListData;

import java.util.List;

public interface ArticleAdjunctService {
    ArticleAdjunct saveArticleAdjunctData(String userId, String articleId, String adjunctName, String adjunctUrl, Integer showIndex);

    int deleteArticleAdjunct(Integer id);

    int updateArticleAdjunct(Integer id, String adjunctName, String adjunctUrl);

    List<ArticleDataAdjunctListData> loadArticleAdjunctDataList(String articleId);

    int loadArticleAdjunctMaxVersion(String articleId);

    int deleteArticleAdjunctByArticleId(String articleId);
}
